import json
import requests
from test_case import conftest

class get_chuzhangguize:

    def get_chuzhangguize(self):
        try:
            url = 'http://erp.uat1.rscloud.com/api-zendai/investment/e/accountPeriodConf/list'
            data = {
                'pageNum': 1,
                'pageSize': 9999
                    }
            result = requests.post(url=url, headers=conftest.fin_header, data=json.dumps(data))
            print(result.text)
            return json.loads(result.text)['data']['records'][0]
        except BaseException:
            return False

# a = get_chuzhangguize()
# a.get_chuzhangguize()